<?php
/**
* OS detection and other Misc OS hooks.
*/

function uname_host(){

/*    if (substr(php_uname(), 0, 7) == "Windows") {
die("Sorry, this script doesn't run on Windows.\n");
}
*/
    printf("System Hostname: %s\n",php_uname('n'));
    $uname_s = php_uname('s');
    if(($uname_s=="FreeBSD")||($uname_s=="SunOS")){
            return($uname_s);
        }else{
          return("Unsupported");
        }

    /*switch($uname_s){
        case "FreeBSD":
        echo "Host OS; 'FreeBSD'.\n";
        //return($uname_s);
        break;
        case "SunOS":
        echo "Host OS; 'SunOS'.\n";
        //return($uname_s);
        break;
        default:
            echo "Unsupported OS";
            //return ("Unsupported");
        }
    return (0);*/
}

?>
